package com.pms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pms.dao.PostMapper;
import com.pms.pojo.Department;
import com.pms.pojo.DeptTransfer;
import com.pms.pojo.DeptTurn;
import com.pms.pojo.Employees;
import com.pms.pojo.FindRequire;
import com.pms.pojo.Require;
import com.pms.service.PostService;

@Service("postService")
public class PostServiceImpl implements PostService {

	@Resource(name="postDao")
	private PostMapper postDao;
	
	

	public void setPostDao(PostMapper postDao) {
		this.postDao = postDao;
	}

	@Override
	public List<Employees> getEmployees() {
		// TODO Auto-generated method stub
		return this.postDao.getEmployees();
	}

	@Override
	public List<Department> getDepartment() {
		// TODO Auto-generated method stub
		return this.postDao.getDepartment();
	}

	@Override
	public List<Employees> getRequireEmployees(Require require) {
		// TODO Auto-generated method stub
		
		return this.postDao.getRequireEmployees(require);
	}

	@Override
	public Employees getEmployeeById(Integer emp_id) {
		// TODO Auto-generated method stub
		return this.postDao.getEmployeeById(emp_id);
	}

	@Override
	public void updateEmployee(DeptTransfer deptTransfer) {
		// TODO Auto-generated method stub
		this.postDao.updateEmployee(deptTransfer);
		
	}

	@Override
	public Department getDept(Integer dt_dept_a) {
		// TODO Auto-generated method stub
		return this.postDao.getDept(dt_dept_a);
	}

	@Override
	public void addDeptTransfer(DeptTransfer deptTransfer) {
		// TODO Auto-generated method stub
		this.postDao.addDeptTransfer(deptTransfer);
	}

	@Override
	public List<DeptTurn> getDeptTranfer() {
		// TODO Auto-generated method stub
		return this.postDao.getDeptTranfer();
	}

	@Override
	public List<DeptTurn> getByRequire(FindRequire findrequire) {
		// TODO Auto-generated method stub		
		return this.postDao.getByRequire(findrequire);
	}

	@Override
	public int getlist(DeptTransfer deptTransfer) {
		// TODO Auto-generated method stub
		return this.postDao.getlist(deptTransfer);
	}

	@Override
	public int getPostList(DeptTransfer deptTransfer) {
		// TODO Auto-generated method stub
		return this.postDao.getPostList(deptTransfer);
	}

	

}
